import { newRequest } from '@/utils/newRequest'

export function getTechPageList(params) {
    return newRequest({
        url: '/api/BasicsData/GetTechPageList',
        method: 'get',
        params: {
            ...params
        }
    })
}

export function insertTech(data) {
    return newRequest({
        url: '/api/basicsData/InsertTech',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function updateTech(data) {
    return newRequest({
        url: '/api/basicsData/UpdateTech',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function removeTech(data) {
    return newRequest({
        url: '/api/basicsData/RemoveTech',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function startOrStopTech(data) {
    return newRequest({
        url: '/api/basicsData/StartOrStopTech',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function getMethodListByTech(params) {
    return newRequest({
        url: '/api/BasicsData/GetMethodListByTech',
        method: 'get',
        params: {
            ...params
        }
    })
}
export function setMethodByTech(data) {
    return newRequest({
        url: '/api/basicsData/SetMethodByTech',
        method: 'post',
        data: {
            ...data
        }
    })
}
export function getTechTypeList(params) {
    return newRequest({
        url: '/api/BasicsData/GetTechTypeList',
        method: 'get',
        params: {
            ...params
        }
    })
}
export function getTechLog(params) {
    return newRequest({
        url: '/api/system/GetUseLogList',
        method: 'get',
        params: {
            ...params
        }
    })
}
